Skip to main content

LengthWhile

LengthWhile[list,crit] gives the number of contiguous elements ei starting at the beginning of list for which crit[ei] is True.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.